package com.leizi.igym.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leizi.igym.domain.Category;
import com.leizi.igym.dto.CategoryPageQueryDTO;
import com.leizi.igym.vo.CategoryCascaderVO;
import com.leizi.igym.vo.CategoryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author PC
 * @description 针对表【t_category(分类总表)】的数据库操作Mapper
 * @createDate 2024-04-07 17:57:07
 * @Entity com.leizi.igym.domain.Category
 */
public interface CategoryMapper extends BaseMapper<Category> {

    List<CategoryVO> selectCategoryWithChild();


    List<CategoryCascaderVO> selectCategoryCascaderVO();

    Page<CategoryVO> selectPageWithChildren(Page<Object> objectPage,
                                            @Param("dto") CategoryPageQueryDTO dto);

    CategoryVO selectCategoryWithChildById(Long id);
}




